//
//  BrandList.m
//  19-Homework
//
//  Created by dllo on 16/8/9.
//  Copyright © 2016年 ZHW. All rights reserved.
//

#import "BrandList.h"
#import "List.h"
@implementation BrandList

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"list"]) {
        NSMutableArray<List *> *listArr = [NSMutableArray array];
        for (NSDictionary *dictionary in value) {
            List *list = [List modelWithDic:dictionary];
            [listArr addObject:list];
        }
        _list = listArr;
    }
}
@end
